<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 86153
  Date: 2023/3/8
  Time: 18:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/";
%>


<html>
<head>
	<base href="<%=basePath%>">
	<link href="css/haiersoft.css" rel="stylesheet" type="text/css" media="screen,print"/>
	<link href="css/print.css" rel="stylesheet" type="text/css" media="print"/>
	<script src="js/jquery-1.10.1.min.js"></script>
	<script src="js/side.js" type="text/javascript"></script>
	<script src="js/jquery-3.6.0.js"></script>
	<script>
        function Submit_vocation(infoId) {
            var infoId1 = infoId;
            $.ajax({
                url: 'Enterprise_info/Submit_vocation',
                headers: {
                    'Content-Type': 'application/json;charset=utf-8',
                },
                type: 'GET',
                dataType: "json",
                data: {
                    "infoId": infoId1
                },
                success: function (data) {
                    alert(data.message);
                    window.location.reload();
                }
            })
        }
	</script>
	<style>
        .tdColor1 {
            width: 20%;
            height: 40px;
            background-color: #f2f2f2;
            color: #438eb9;
            text-align: center;

        }
	</style>
</head>
<body>
<div id="MainForm">
	<div class="form_boxA">
		<h2>职业信息列表</h2>
		<table cellpadding="0" cellspacing="0" style="margin-top: 30px;position: absolute;">
			<form id="form1">

				<tr>
					<th class="tdColor1">职业信息编号</th>
					<td>
						<div class="txtbox floatL" style="width:100px;">
							<lable>${vocationalInfos.infoId}</lable>
						</div>
					</td>
				</tr>
				<tr>
					<th class="tdColor1">企业账号</th>
					<td>
						<div class="txtbox floatL" style="width:100px;">
							<lable>${vocationalInfos.comAccount}</lable>
						</div>
					</td>
				</tr>
				<tr>
					<th class="tdColor1">职业信息内容</th>
					<td>
						<div class="txtbox floatL" style="width:666px;">
							<lable style="display: inline-block;width: 666px;">${vocationalInfos.infoContent}</lable>
						</div>
					</td>
				</tr>
				<tr style="height: 300px;">
					<div>
						<td><img style="position: relative;height: 300px;width:300px;left: 244px;"
						         src="${vocationalInfos.img2}"/>
						</td>
						<td><img style="height: 300px;width:300px;"
						         src="${vocationalInfos.img3}"/>
						</td>
						<td><img style="height: 300px;width:300px;position: relative;right: 258px;"
						         src="${vocationalInfos.img1}"/>
						</td>
					</div>
				</tr>
				<tr>
					<th class="tdColor1">职业信息状态</th>
					<td>
						<div class="txtbox floatL" style="width:100px;">
							<lable>${vocationalInfos.infoStatus}</lable>
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<button style=" position: absolute;top: 620px;right: 320px;">
							<a
									href="jsp/update_vocation.jsp?&comAccount=${vocationalInfos.comAccount}&infoContent=${vocationalInfos.infoContent}">修改
							</a>
						</button>
						<button style="position: absolute;top: 620px; right: 250px;">
							<a href="<c:url value="/jsp/enterprise.jsp?comAccount=${vocationalInfos.comAccount}"/>">返回</a>
						</button>
					</td>
				</tr>
			</form>
		</table>
	</div>
</div>

</body>
</html>
